package com.ximcontroller.controllers;

import com.ximcontroller.models.elements.XIM;
import com.ximcontroller.models.elements.XIMAction;

public class XIMController
{
	private WSController wsc;
	private XIM target;
	
	public XIMController()
	{
		this.initialize();
	}
	
	public XIMController(XIM target)
	{
		this.target = target;
	}
	
	public void initialize()
	{
		this.target = new XIM();
	}
	
	public XIM getTarget()
	{
		return target;
	}
	
	public void setTarget(XIM target)
	{
		this.target = target;
	}
	
	public void doAction(XIMAction action)
	{
		action.setMachine(this.target);
		action.doAction();
	}
	
}
